package com.wzh.himalaya.utils;

import android.util.Log;

/**
 * className:LogUtil
 * Author:WZH
 * Time:2022-01-17
 */
public class LogUtil {
    public static String sTAG = "LogUtil";
    //控制是否要输出log
    public static boolean sIsRelease = false;

    /**
     * 如果要是发布了，可以在application里面把治理release一下，这样子就没有log输出了
     */

    public static void init(String baseTag,boolean IsRelease)
    {
        sTAG = baseTag;
        sIsRelease =IsRelease;
    }

    public static void d(String TAG,String content)
    {
        if(!sIsRelease)
        {
            Log.d("["+sTAG+"]"+TAG,content);
        }
    }

    public static void v(String TAG,String content)
    {
        if(!sIsRelease)
        {
            Log.d("["+sTAG+"]"+TAG,content);
        }
    }

    public static void i(String TAG,String content)
    {
        if(!sIsRelease)
        {
            Log.d("["+sTAG+"]"+TAG,content);
        }
    }




}
